package com.shanzmoo.db.store.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 仓库采购单
 * </p>
 *
 * @author xueqz
 * @since 2021-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("store_purchase_bill")
public class StorePurchaseBillEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 单号
     */
    private String billNo;

    /**
     * 采购供应商
     */
    private Integer supplierId;

    /**
     * 采购员
     */
    private Integer purchaseUser;

    /**
     * 采购大仓
     */
    private Integer storeId;

    /**
     * 所属客户id
     */
    private Integer memberId;

    /**
     * 状态：0-待审核,1-审核通过（待入库）,2-到货异常,3-已完成,9-已取消
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 审批人
     */
    private Integer examineUser;

    /**
     * 审批时间
     */
    private LocalDateTime examineTime;

    /**
     * 创建人
     */
    private Integer createUser;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 逻辑删除，0-未删除 1-已删除
     */
    private Boolean deleted;


}
